﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using ZhiJiao.Models.Entities.Enums;

namespace ZhiJiao.Models.Entities
{
    /// <summary>
    /// 订单表
    /// </summary>
    public class Order:BaseEntity
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }


        public Member Member { get; set; }


        public long MemberId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 应付价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 实付价
        /// </summary>
        public decimal PayPrice { get; set; }

        /// <summary>
        /// 对应测评
        /// </summary>
        public MemberEvaluation? MemberEvaluation { get; set; }

        /// <summary>
        /// 对应课程
        /// </summary>
        public MemberCourse? MemberCourse { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderStatus Status { get; set; }

        /// <summary>
        /// 所属机构
        /// </summary>
        public Instruction Instruction { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        public long InstructionId { get; set; }
    }
}
